﻿@model HotelMgr.Models.Order
@{
    ViewBag.Title = "SaveOrder";
}
<h2 style="text-align: center;font-size: 19px;font-weight: bolder;color: blueviolet;">
    订单详情</h2>
@Html.HiddenFor(o => o.OrderID)
<table width="100%">
    <tr>
        <th width="10%">@Html.LabelFor(o => o.Customer.Name)
        </th>
        <td width="40%">@Html.DisplayFor(o => o.Customer.Name)
        </td>
        <th width="10%">@Html.LabelFor(o => o.Customer.Sex)
        </th>
        <td width="40%">@Html.DisplayFor(o => o.Customer.Sex)
        </td>
    </tr>
    <tr>
        <th>@Html.LabelFor(o => o.Customer.IDCard)
        </th>
        <td>@Html.DisplayFor(o => o.Customer.IDCard)
        </td>
        <th>@Html.LabelFor(o => o.Customer.Phone)
        </th>
        <td>@Html.DisplayFor(o => o.Customer.Phone)
        </td>
    </tr>
    <tr>
        <th>@Html.LabelFor(o => o.PeopleNumber)
        </th>
        <td>@Html.DisplayFor(o => o.PeopleNumber)
        </td>
        <th>@Html.LabelFor(o => o.OrderTime)
        </th>
        <td>@Html.DisplayFor(o => o.OrderTime)
        </td>
    </tr>
    <tr>
        <th>@Html.LabelFor(o => o.CheckInTime)
        </th>
        <td>@Html.DisplayFor(o => o.CheckInTime)
        </td>
        <th>@Html.LabelFor(o => o.CheckOutTime)
        </th>
        <td>@Html.DisplayFor(o => o.CheckOutTime)
        </td>
    </tr>
    <tr>
        <th>@Html.LabelFor(o => o.Status)
        </th>
        <td colspan="3">@Html.DisplayFor(o => o.Status)
        </td>
    </tr>
    <tr>
        <th>@Html.LabelFor(o => o.Comment)
        </th>
        <td colspan="3">@Html.DisplayFor(o => o.Comment)
        </td>
    </tr>
</table>
<br />
@{
    Html.Telerik().Grid(Model.Rooms).Name("OrderRoomsGrid")
        .Columns(col =>
                     {
                         col.Bound(o => o.RoomID);
                         col.Bound(o => o.Price);
                         //col
                     })
        .Render();
}
<p class="OrderState" style="text-align: right; font-size: 20px; font-weight: bold;">
    ￥@Model.Rooms.Sum(c => c.Price)
</p>
<div style="text-align: center;font-size: 16px;font-weight: bolder;">
    @Html.ActionLink("确认付款", "ConfirmOrder", "OrderPanelBar", new { id = Model.OrderID },null)
    @Html.ActionLink("取消", "CancelOrder", "OrderPanelBar", new { id = Model.OrderID },null)
    @Html.ActionLink("退房","CheckOut","OrderPanelBar",new {id=Model.OrderID},null)
</div>
